using System;
using Vici.Mvc;

namespace Demo.ViciMvc
{
    [View("header")]
    [ComponentName("Header")]
    public class HeaderComponent : ViewComponent
    {
        public void Run(string productName)
        {
            ViewData["ProductName"] = productName;
            ViewData["Version"] = WebAppConfig.Version;
        }
    }
}
